import { postAction, getAction, deleteAction } from '@/util/request'

export function findMenuList(data) {
  return getAction('/sys/menu/findMenuList', data)
}

export function addOrUpdate(data) {
  return postAction('/sys/menu/addOrUpdate', data)
}

export function findJSONArrayMenuList() {
  return getAction('/sys/menu/findJSONArrayMenuList')
}

export function findMenuVoById(data) {
  return getAction('/sys/menu/findMenuVoById', data)
}

export function deleteMenuById(data) {
  return deleteAction('/sys/menu/deleteMenuById', data)
}
